package mercurius.fitness.client.ui.menu;

import mercurius.fitness.client.Fitness;
import mercurius.fitness.client.locale.Locale;
import mercurius.fitness.client.ui.menu.items.DietMenu;
import mercurius.fitness.client.ui.menu.items.ExerciseMenu;
import mercurius.fitness.client.ui.menu.items.MeasurementsMenu;
import mercurius.fitness.client.ui.menu.items.SettingsMenu;
import mercurius.fitness.client.ui.menu.items.RSSMenu;

import com.google.gwt.user.client.ui.MenuBar;

public class MainMenu extends MenuBar {

	public MainMenu() {
		super();
		this.setAutoOpen(true);
		this.addItem(Locale.constants().measurement(),true,new MeasurementsMenu());
		this.addItem(Locale.constants().diet(),true,new DietMenu());
		this.addItem(Locale.constants().exercise(),true,new ExerciseMenu());
		this.addItem(Locale.constants().settings(),true,new SettingsMenu());
		if(Fitness.get().isRSSEnabled()) {
			this.addItem(Locale.constants().rss(),true,new RSSMenu());
		}
		

	}
}
